#include<iostream>
using namespace std;
#include<cmath>

#include"library.h"

double g(double x){
	return x*x-1;
}

int main(){

	double a=0, b=10;
	cout<<" root: x="<<SecantMethod(g, a, b, 1E-6)<<endl;
	return 0;
}
